package com.witframework.baseapp.security.controller;

import java.util.List;

import org.springframework.stereotype.Component;

import com.witframework.baseapp.security.system.SystemLog;
import com.witframework.core.WitFrameWork;
import com.witframework.web.mvc.Controller;
import com.witframework.web.mvc.WebContext;


@Component
public class LoggingController implements Controller{
	public String executor(WebContext webContext) {		
		List<SystemLog> logList = WitFrameWork.getSimpleBaseService(SystemLog.class).pagedQuery(webContext.getFilter(),webContext.getPageSortModel("log"));
		webContext.setAttribute("logList",logList);		
		return "classpath:/com/witframework/webroot/framework/security/logging.jsp";
	}
}
